﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NorthwindEFModel;
using SampleSupport;

namespace SampleQueries
{
    class NorthwindBasedSample : SampleHarness
    {
        protected NorthwindEntities context;

        public NorthwindBasedSample()
            : base()
        {
        }

        public override void  InitSample()
        {
            if (context != null)
            {
                context.Dispose();
            }

            context = new NorthwindEntities();
            context.Connection.Open();
        }
    }
}
